import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

const DEV_SERVER="http://localhost:20520"
// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  server:{
    cors: true,
    proxy: {
      "/common": {
        target: DEV_SERVER,
        changeOrigin: false,
      },
      "/v1": {
        target: DEV_SERVER,
        changeOrigin: false,
      },
    }
  }
})
